﻿ 
using System.Collections.Generic; 
using NTTDATA.BEENChina.ResultCertification.DataStore;

namespace NTTDATA.BEENChina.ResultCertification.Logic
{
    /// <summary>
    /// 单例 得到全部的emaddress
    /// </summary>
    public class JaMailAddress
    { 

        private JaMailAddress()
        {
            IJaMailClientAccess  mailClientAccess = new JaMailClientAccess();
            EmailAddress = mailClientAccess.GetJaMailAddress();
        }

        public List<string> EmailAddress { get; set; }

        private static JaMailAddress _jaMailAddress = null;

        public static JaMailAddress GetInstance()
        {
            if (_jaMailAddress == null)
                _jaMailAddress = new JaMailAddress();

            return _jaMailAddress;
        }
    }
}
